import Vue from 'vue'
import VueRouter from 'vue-router'
import Shop from "@/views/Shop.vue"




Vue.use(VueRouter)

const routes = [
  //配置默认路由 定义到商品
  {
    path:"/",
    redirect:"/shop",
  },
 //配置路由
 {
   path:"/shop",
   component:Shop
 },
 {
   path:"/shophome",
   component:()=>import("@/views/Shophome.vue")
 },
 {
  path:"/speack",
  component:()=>import("@/views/Speack.vue")
},
]

const router = new VueRouter({
  routes
})

export default router
